<div id="push"></div>
</div>

<footer id="footer">
    <div class="container">
        <div class="pull-left">
            <a href="#">Sitemap</a>
            |
            <a href="#">About</a>
            |
            <a href="#">Contact Us</a>
            |
            <a href="#">Blog</a>
        </div>
        <div class="pull-right">&copy; <a href="/">Pitchwise</a> 2012 Terms & Conditions and Privacy Policy</div>
    </div>
</footer>

<div id="loginModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel"
     aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h2 id="myModalLabel" style="margin: 0;">Login</h2>
    </div>

    <form name="loginform" class="form-horizontal" id="loginform" action="http://pitchwise.co.uk/wp-login.php"
          method="post" style="margin:0">
        <div class="modal-body">


            <div class="control-group">
                <label class="control-label" for="user_login">Username</label>

                <div class="controls">
                    <input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10">
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="user_pass">Password</label>

                <div class="controls">
                    <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="10">
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="rememberme">Remember Me</label>

                <div class="controls">
                    <input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90">
                </div>
            </div>

            <p class="login-submit">
                <input type="hidden" name="redirect_to" value="http://pitchwise.co.uk/">
            </p>

            <div class="alert alert-info" id="login-alert" style="display:none">
                <strong>Warning!</strong> Best check yo self, you're not looking too good.
            </div>


        </div>
        <div class="modal-footer">
            <a class="btn" data-dismiss="modal" aria-hidden="true" tabindex="2">Close</a>
            <a class="btn pull-left btn-inverse" href="/registration/">Register</a>
            <button class="btn btn-primary" type="submit" name="wp-submit" id="wp-submit" value="Log In" tabindex="100">
                Login
            </button>
        </div>
    </form>
</div>

<div style="display:none">
    <div id="var-authenticated"></div>
</div>

<script src="<?php echo get_template_directory_uri(); ?>/js/jquery-1.8.2.min.js"></script>

<script src="<?php echo get_template_directory_uri(); ?>/js/bootstrap.min.js"></script>

<script src="<?php echo get_template_directory_uri(); ?>/js/PITCHWISE.login.js"></script>

<script type="text/javascript"
        src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB-k-7b00P-IEkcvnNmQekON1RL9SVPSQI&sensor=false">
</script>

<script type="text/javascript">
    $(function () {
        var options = {
            'authenticated' : <?php if (is_user_logged_in()) {echo 'true';} else {echo 'false';} ?>,
            'role':"<?php echo get_user_role() ?>",
            'logoutUrl':"<?php echo wp_logout_url( home_url() ); ?>"
        };
        var login = new PITCHWISE.login(options);
    });
</script>

<?php wp_footer(); ?>

</body>
</html>